package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

@Entity
public class Dish extends Model {
	public String name;
	public float price;
	public String description;
	public String path;
	
	@ManyToOne
	public Restaurant restaurant;
	
	public Dish(String name, float price, String description) {
		super();
		this.name = name;
		this.price = price;
		this.description = description;
	}

	@Override
	public String toString() {
		return "Dish [name=" + name + ", price=" + price + ", description="
				+ description + "]";
	}
	
	
}
